package com.learner.common.client.ucenter.user;

import com.learner.common.client.oss.hystrix.OssFileClientHystrix;
import com.learner.common.client.ucenter.user.hystrix.UserClientHystrix;
import com.learner.pojo.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author ice2020x
 * @Date 2023-03-08 15:33
 * @Description:
 */
@Service
@FeignClient(value = "ls-service-ucentrmember", fallback = UserClientHystrix.class)
public interface UserClient {


    /**
     * 根据用户id获取用户详细信息
     *
     * @param userId 用户id
     * @return 请求结果
     */
    @GetMapping("/api/ucenter/member/{userId}")
    User getUserInfo(@PathVariable("userId") String userId);
}
